package com.test.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.test.common.ShiroUtils;
import com.test.entity.SysUser;


/**
 * Controller公共组件
 *
 * @author luotuo
 * 
 */
public abstract class AbstractController {
	protected Logger logger = LoggerFactory.getLogger(getClass());

	protected SysUser getUser() {
		return ShiroUtils.getUserEntity();
	}

	protected Long getUserId() {
		return getUser().getUser_id();
	}
}
